# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年10月12日
"""
import pandas as pd
import numpy as np

index = pd.MultiIndex.from_product([[2019, 2020], [5, 6]], names=['年', '月'])
columns = pd.MultiIndex.from_product([['香蕉', '苹果'], ['土豆', '茄子']],names=['水果','蔬菜'])

data = pd.DataFrame(np.random.random(size=(4,4)), index=index, columns=columns)

# print(index)
print(data)
